package com.dek.serviceconsumerfeign.service;

import com.dek.serviceconsumerfeign.service.impl.HelloServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "service-provider", fallback = HelloServiceImpl.class)
public interface HelloService {

    @RequestMapping(value = "/hello")
    String hello();

}
